package com.yonyou.cyxdms.basedata.service.dto.vehiclemodel;

import com.yonyou.cyxdms.framework.bean.dto.base.DMSBaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 颜色Page表格 - 查询DTO
 *
 * @author Tansj
 * @since 18:10 2019-11-18
 */
@ApiModel(value = "ColorQueryDTO", description = "颜色Page表格 - 查询DTO")
public class ColorQueryDTO extends DMSBaseDTO implements Serializable {

    @Size(min = 0, max = 100)
    @ApiModelProperty(value = "颜色代码（模糊查询）")
    private String colorCode;

    @Size(min = 0, max = 100)
    @ApiModelProperty(value = "颜色名称（模糊查询）")
    private String colorName;

    @ApiModelProperty(value = "颜色类型")
    private Integer colorType;

    @ApiModelProperty(value = "数据来源")
    private Integer dataSources;

    @ApiModelProperty(value = "是否有效")
    private Integer isValid;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "创建人")
    private String createdBy;

    public String getColorCode() {
        return colorCode;
    }

    public void setColorCode(String colorCode) {
        this.colorCode = colorCode;
    }

    public String getColorName() {
        return colorName;
    }

    public void setColorName(String colorName) {
        this.colorName = colorName;
    }

    public Integer getColorType() {
        return colorType;
    }

    public void setColorType(Integer colorType) {
        this.colorType = colorType;
    }

    public Integer getDataSources() {
        return dataSources;
    }

    public void setDataSources(Integer dataSources) {
        this.dataSources = dataSources;
    }

    public Integer getIsValid() {
        return isValid;
    }

    public void setIsValid(Integer isValid) {
        this.isValid = isValid;
    }

    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    @Override
    public String toString() {
        return "ColorQueryDTO{" +
                "colorCode='" + colorCode + '\'' +
                ", colorName='" + colorName + '\'' +
                ", colorType=" + colorType +
                ", dataSources=" + dataSources +
                ", isValid=" + isValid +
                ", createdBy=" + createdBy +
                ", createdAt=" + createdAt +
                '}';
    }
}
